//
//  DownLoadVideoService.h
//  cooler
//
//  Created by fax on 2019/1/7.
//  Copyright © 2019 yunkuake. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
typedef void(^FinishBlock)(NSString *filePath);
typedef void(^Failed)();
NS_ASSUME_NONNULL_BEGIN

@interface DownLoadVideoService : NSObject
/*
 * url                  音频网址
 * directoryPath  存放的地址
 * fileName         要存的名字
 */
+ (void)downloadAudioWithUrl:(NSString *)url
           saveDirectoryPath:(NSString *)directoryPath
                    fileName:(NSString *)fileName
                      finish:(FinishBlock )finishBlock
                      failed:(Failed)failed;
@end

NS_ASSUME_NONNULL_END
